package io.xxx.omni.translate.impl

import com.alibaba.fastjson.JSON
import io.xxx.omni.sync.Document
import io.xxx.omni.translate.RefundTranslator
import io.xxx.omni.translate.TradeTranslator
import org.springframework.stereotype.Component

@Component
class XhsTradeTranslator : TradeTranslator {

    override val platform = "xiaohongshu"

    override fun translate(document: Document) {
        println("小红书订单信息: " + JSON.toJSONStringWithDateFormat(document, "yyyy-MM-dd HH:mm:ss"))
    }
}

@Component
class XhsRefundTranslator : RefundTranslator {

    override val platform = "xiaohongshu"

    override fun translate(document: Document) {
        println("小红书退单信息: " + JSON.toJSONStringWithDateFormat(document, "yyyy-MM-dd HH:mm:ss"))
    }
}